package com.aaa.service.impl;

import com.aaa.dao.BrandMapper;
import com.aaa.entity.Brand;
import com.aaa.service.BrandServiceDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BrandServiceimpl implements BrandServiceDao {
    @Resource
    BrandMapper brandMapper;

    @Override
    public List<Brand> find() {
        return brandMapper.find();
    }

    @Override
    public int add(Brand brand) {
        return brandMapper.add(brand);
    }

    @Override
    public int update(Brand brand) {
        return brandMapper.update(brand);
    }

    @Override
    public int delete(Integer id) {
        return brandMapper.delete(id);
    }
}
